import {ajax,base} from './config'
import axios from 'axios';

/**
*通知列表
*/
// 获取列表
export const getAnnounceList = params => { return ajax.getMinData({url:`${base}announcementController/datagrid.do`, params}); };
// 查看
export const checkAnnounceList = params => { return ajax.getMinData({url:`${base}announcementController/getAnnouncementById.do`, params}); };
// 编辑
export const AnnListEdit = params => { return ajax.postData({url:`${base}announcementController/doUpdate.do`, params}); };
// 删除
export const removeAnnLists = params => { return ajax.postData({url:`${base}announcementController/doDel.do`, params}); };
// 发布通知人员列表
export const getusersList = params => { return axios.post(`${base}departController.do?userDatagrid`, params); };
// 发布通知
export const announceAdd = params => { return ajax.getMinData({url:`${base}announcementController/doAdd.do`, params}); };
//参与 办公
export const joinWork = params => { return ajax.postData({url:`${base}api/announcementPerson/sign.do`, params}); };